import request from '@/utils/request'

// 查询震动监测预警事件列表
export function listQuakeEvent(query) {
  return request({
    url: '/device/quakeEvent/list',
    method: 'get',
    params: query
  })
}

// 查询震动监测预警事件详细
export function getQuakeEvent(id) {
  return request({
    url: '/device/quakeEvent/' + id,
    method: 'get'
  })
}

// 新增震动监测预警事件
export function addQuakeEvent(data) {
  return request({
    url: '/device/quakeEvent',
    method: 'post',
    data: data
  })
}

// 修改震动监测预警事件
export function updateQuakeEvent(data) {
  return request({
    url: '/device/quakeEvent',
    method: 'put',
    data: data
  })
}

// 删除震动监测预警事件
export function delQuakeEvent(id) {
  return request({
    url: '/device/quakeEvent/' + id,
    method: 'delete'
  })
}
